From: Florian Müllner Date: Fri, 15 Sep 2023 13:06:05 +0000 (+0200) Subject: extensions: Fix ngettext convenience X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~312^2^2~5 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=41907e9a56f8c1346fbe8f941e10569a33ead21e;p=gnome-shell.git extensions: Fix ngettext convenience It is hooked up to the extension's 'gettext' function rather than 'ngettext'. Fixes: f59d523694 ("extensions: Add static defineTranslationFunctions() method") Part-of: --- diff --git a/js/extensions/sharedInternals.js b/js/extensions/sharedInternals.js index 1e3ac6dba..5c093c336 100644 --- a/js/extensions/sharedInternals.js +++ b/js/extensions/sharedInternals.js @@ -227,7 +227,7 @@ export class GettextWrapper { #ngettext(str, strPlural, n) { const extension = this.#lookupExtension('ngettext'); - return extension.gettext(str, strPlural, n); + return extension.ngettext(str, strPlural, n); } #pgettext(context, str) {